package com.java.grammer.constructer.exer1;

/**
 * @author luzhikun
 * @date 2020/12/5- 11:16
 */
public class Cat_2 extends Animal_2 {
    String color;

    public Cat_2(int age, String name, int leg, String color) {
        super(age, name, leg);
        this.color = color;
    }

    public void upTree() {
        System.out.println("猫可以爬树");
    }

    public void getSleep() {
        System.out.println("猫不需要睡觉");
    }

}
